﻿using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using System;

namespace H2.NET.Web.Pages.SMD.Model
{
    [Table]
    [Serializable]
    public class t_smd_Device : DataObject
    {
        [ID]
        [IDENTITY]
        [Column]
        public int DeviceID { get { return fDEVICEID; } set { fDEVICEID = value; EntityState.FieldChange("DeviceID"); } } private int fDEVICEID; public static FieldInfo _DeviceID = new FieldInfo("t_smd_Device", "DeviceID");
        [Column]
        public int? StoreID { get { return fSTOREID; } set { fSTOREID = value; EntityState.FieldChange("StoreID"); } } private int? fSTOREID; public static FieldInfo _StoreID = new FieldInfo("t_smd_Device", "StoreID");
        [Column]
        public string AuthID { get { return fAUTHID; } set { fAUTHID = value; EntityState.FieldChange("AuthID"); } } private string fAUTHID; public static FieldInfo _AuthID = new FieldInfo("t_smd_Device", "AuthID");
        [Column]
        public string DeliveryType { get { return fDELIVERYTYPE; } set { fDELIVERYTYPE = value; EntityState.FieldChange("DeliveryType"); } } private string fDELIVERYTYPE; public static FieldInfo _DeliveryType = new FieldInfo("t_smd_Device", "DeliveryType");
        [Column]
        public DateTime? DispenserPurchasedDate { get { return fDISPENSERPURCHASEDDATE; } set { fDISPENSERPURCHASEDDATE = value; EntityState.FieldChange("DispenserPurchasedDate"); } } private DateTime? fDISPENSERPURCHASEDDATE; public static FieldInfo _DispenserPurchasedDate = new FieldInfo("t_smd_Device", "DispenserPurchasedDate");
        [Column]
        public DateTime? DispenserSetupDate { get { return fDISPENSERSETUPDATE; } set { fDISPENSERSETUPDATE = value; EntityState.FieldChange("DispenserSetupDate"); } } private DateTime? fDISPENSERSETUPDATE; public static FieldInfo _DispenserSetupDate = new FieldInfo("t_smd_Device", "DispenserSetupDate");
        [Column]
        public string DispenserModel { get { return fDISPENSERMODEL; } set { fDISPENSERMODEL = value; EntityState.FieldChange("DispenserModel"); } } private string fDISPENSERMODEL; public static FieldInfo _DispenserModel = new FieldInfo("t_smd_Device", "DispenserModel");
        [Column]
        public string DispenserFixedAsset { get { return fDISPENSERFIXEDASSET; } set { fDISPENSERFIXEDASSET = value; EntityState.FieldChange("DispenserFixedAsset"); } } private string fDISPENSERFIXEDASSET; public static FieldInfo _DispenserFixedAsset = new FieldInfo("t_smd_Device", "DispenserFixedAsset");
        [Column]
        public string DispenserSN { get { return fDISPENSERSN; } set { fDISPENSERSN = value; EntityState.FieldChange("DispenserSN"); } } private string fDISPENSERSN; public static FieldInfo _DispenserSN = new FieldInfo("t_smd_Device", "DispenserSN");
        [Column]
        public DateTime? ShakerPurchasedDate { get { return fSHAKERPURCHASEDDATE; } set { fSHAKERPURCHASEDDATE = value; EntityState.FieldChange("ShakerPurchasedDate"); } } private DateTime? fSHAKERPURCHASEDDATE; public static FieldInfo _ShakerPurchasedDate = new FieldInfo("t_smd_Device", "ShakerPurchasedDate");
        [Column]
        public DateTime? ShakerSetupDate { get { return fSHAKERSETUPDATE; } set { fSHAKERSETUPDATE = value; EntityState.FieldChange("ShakerSetupDate"); } } private DateTime? fSHAKERSETUPDATE; public static FieldInfo _ShakerSetupDate = new FieldInfo("t_smd_Device", "ShakerSetupDate");
        [Column]
        public string ShakerModel { get { return fSHAKERMODEL; } set { fSHAKERMODEL = value; EntityState.FieldChange("ShakerModel"); } } private string fSHAKERMODEL; public static FieldInfo _ShakerModel = new FieldInfo("t_smd_Device", "ShakerModel");
        [Column]
        public string ShakerFixedAsset { get { return fSHAKERFIXEDASSET; } set { fSHAKERFIXEDASSET = value; EntityState.FieldChange("ShakerFixedAsset"); } } private string fSHAKERFIXEDASSET; public static FieldInfo _ShakerFixedAsset = new FieldInfo("t_smd_Device", "ShakerFixedAsset");
        [Column]
        public string ShakerSN { get { return fSHAKERSN; } set { fSHAKERSN = value; EntityState.FieldChange("ShakerSN"); } } private string fSHAKERSN; public static FieldInfo _ShakerSN = new FieldInfo("t_smd_Device", "ShakerSN");
        [Column]
        public DateTime? PcPurchasedDate { get { return fPCPURCHASEDDATE; } set { fPCPURCHASEDDATE = value; EntityState.FieldChange("PcPurchasedDate"); } } private DateTime? fPCPURCHASEDDATE; public static FieldInfo _PcPurchasedDate = new FieldInfo("t_smd_Device", "PcPurchasedDate");
        [Column]
        public DateTime? PcSetupDate { get { return fPCSETUPDATE; } set { fPCSETUPDATE = value; EntityState.FieldChange("PcSetupDate"); } } private DateTime? fPCSETUPDATE; public static FieldInfo _PcSetupDate = new FieldInfo("t_smd_Device", "PcSetupDate");
        [Column]
        public string PcModel { get { return fPCMODEL; } set { fPCMODEL = value; EntityState.FieldChange("PcModel"); } } private string fPCMODEL; public static FieldInfo _PcModel = new FieldInfo("t_smd_Device", "PcModel");
        [Column]
        public string PcFixedAsset { get { return fPCFIXEDASSET; } set { fPCFIXEDASSET = value; EntityState.FieldChange("PcFixedAsset"); } } private string fPCFIXEDASSET; public static FieldInfo _PcFixedAsset = new FieldInfo("t_smd_Device", "PcFixedAsset");
        [Column]
        public string PcSN { get { return fPCSN; } set { fPCSN = value; EntityState.FieldChange("PcSN"); } } private string fPCSN; public static FieldInfo _PcSN = new FieldInfo("t_smd_Device", "PcSN");
        [Column]
        public string Status { get { return fSTATUS; } set { fSTATUS = value; EntityState.FieldChange("Status"); } } private string fSTATUS; public static FieldInfo _Status = new FieldInfo("t_smd_Device", "Status");
        [Column]
        public string Contacts { get { return fCONTACTS; } set { fCONTACTS = value; EntityState.FieldChange("Contacts"); } } private string fCONTACTS; public static FieldInfo _Contacts = new FieldInfo("t_smd_Device", "Contacts");
        [Column]
        public string ContactNumber { get { return fCONTACTNUMBER; } set { fCONTACTNUMBER = value; EntityState.FieldChange("ContactNumber"); } } private string fCONTACTNUMBER; public static FieldInfo _ContactNumber = new FieldInfo("t_smd_Device", "ContactNumber");
        [Column]
        public string Address { get { return fAddress; } set { fAddress = value; EntityState.FieldChange("Address"); } } private string fAddress; public static FieldInfo _Address = new FieldInfo("t_smd_Device", "Address");
        [Column]
        public DateTime? FJDate { get { return fFJDate; } set { fFJDate = value; EntityState.FieldChange("FJDate"); } } private DateTime? fFJDate; public static FieldInfo _FJDate = new FieldInfo("t_smd_Device", "FJDate");
        [Column]
        public Boolean? NeedUpdate { get { return fNeedUpdate; } set { fNeedUpdate = value; EntityState.FieldChange("NeedUpdate"); } } private Boolean? fNeedUpdate; public static FieldInfo _NeedUpdate = new FieldInfo("t_smd_Device", "NeedUpdate");
        [Column]
        public string ShipOrderNumber { get { return fShipOrderNumber; } set { fShipOrderNumber = value; EntityState.FieldChange("ShipOrderNumber"); } } private string fShipOrderNumber; public static FieldInfo _ShipOrderNumber = new FieldInfo("t_smd_Device", "ShipOrderNumber");
        [Column]
        public string FullSetSN { get { return fFullSetSN; } set { fFullSetSN = value; EntityState.FieldChange("FullSetSN"); } } private string fFullSetSN; public static FieldInfo _FullSetSN = new FieldInfo("t_smd_Device", "FullSetSN");
        [Column]
        public string MeiPinNo { get { return fMEIPINNO; } set { fMEIPINNO = value; EntityState.FieldChange("MeiPinNo"); } } private string fMEIPINNO; public static FieldInfo _MeiPinNo = new FieldInfo("t_smd_Device", "MeiPinNo");
        [Column]
        public bool IsTurnSolid { get { return fISTURNSOLID; } set { fISTURNSOLID = value; EntityState.FieldChange("IsTurnSolid"); } } private bool fISTURNSOLID; public static FieldInfo _IsTurnSolid = new FieldInfo("t_smd_Device", "IsTurnSolid");

        [Column]
        public DateTime? InstallDate { get { return fInstallDate; } set { fInstallDate = value; EntityState.FieldChange("InstallDate"); } } private DateTime? fInstallDate; public static FieldInfo _InstallDate = new FieldInfo("t_smd_Device", "InstallDate");

        [Column]
        public DateTime? PurchasedDate { get { return fPurchasedDate; } set { fPurchasedDate = value; EntityState.FieldChange("PurchasedDate"); } } private DateTime? fPurchasedDate; public static FieldInfo _PurchasedDate = new FieldInfo("t_smd_Device", "PurchasedDate");
        [Column]
        public DateTime? DeviceApprovedDate { get { return fDEVICEAPPROVEDDATE; } set { fDEVICEAPPROVEDDATE = value; EntityState.FieldChange("DeviceApprovedDate"); } } private DateTime? fDEVICEAPPROVEDDATE; public static FieldInfo _DeviceApprovedDate = new FieldInfo("t_smd_Device", "DeviceApprovedDate");
        [Column]
        public string EapproveSN { get { return fEapproveSN; } set { fEapproveSN = value; EntityState.FieldChange("EapproveSN"); } } private string fEapproveSN; public static FieldInfo _EapproveSN = new FieldInfo("t_smd_Device", "EapproveSN");
        [Column]
        public string ApplicationType { get { return fApplicationType; } set { fApplicationType = value; EntityState.FieldChange("ApplicationType"); } } private string fApplicationType; public static FieldInfo _ApplicationType = new FieldInfo("t_smd_Device", "ApplicationType");
        [Column]
        public decimal? BuyMachineDeposit { get { return fBuyMachineDeposit; } set { fBuyMachineDeposit = value; EntityState.FieldChange("BuyMachineDeposit"); } } private decimal? fBuyMachineDeposit; public static FieldInfo _BuyMachineDeposit = new FieldInfo("t_smd_Device", "BuyMachineDeposit");
        [Column]
        public bool DIRComputer { get { return fDIRComputer; } set { fDIRComputer = value; EntityState.FieldChange("DIRComputer"); } } private bool fDIRComputer; public static FieldInfo _DIRComputer = new FieldInfo("t_smd_Device", "DIRComputer");

        #region Add By Tony 20160524
        [Column]
        public bool IsTransferMachine { get { return fIsTransferMachine; } set { fIsTransferMachine = value; EntityState.FieldChange("IsTransferMachine"); } } private bool fIsTransferMachine; public static FieldInfo _IsTransferMachine = new FieldInfo("t_smd_Device", "IsTransferMachine");
        [Column]
        public string CustomerDevice { get { return fCustomerDevice; } set { fCustomerDevice = value; EntityState.FieldChange("CustomerDevice"); } } private string fCustomerDevice; public static FieldInfo _CustomerDevice = new FieldInfo("t_smd_Device", "CustomerDevice");
        #endregion

    }
}